<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>优惠活动管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid layui-form" wid100>
  <input type="hidden" name="id" value="$!{id}"/>
  <div class="layui-card">
    <div class="layui-card-header">活动信息</div>
    <div class="layui-card-body">
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">活动ID</label>
            <div class="layui-form-mid layui-word-aux">$!{id}</div>
          </div>
        </div>
        <div class="layui-col-sm8">
          <div class="layui-form-item">
            <label class="layui-form-label">活动标题</label>
            <div class="layui-form-mid layui-word-aux">$!{title}</div>
          </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">活动类型</label>
            <div class="layui-form-mid layui-word-aux">$!{typeName}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">活动所属人</label>
            #if($userName)
            <div class="layui-form-mid layui-word-aux">$!{userName}</div>
            #else
            <div class="layui-form-mid layui-word-aux">平台</div>
            #end
          </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">优惠券类型</label>
            <div class="layui-form-mid layui-word-aux">$!{couponTypeName}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">优惠信息</label>
            <div class="layui-form-mid layui-word-aux">$!{couponInfo}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">最低消费</label>
            <div class="layui-form-mid layui-word-aux">$!{minimumChargeStr}元</div>
          </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">使用范围</label>
            <div class="layui-form-mid layui-word-aux">$!{useRangeName}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">类型限制</label>
            <div class="layui-form-mid layui-word-aux">$!{useLimitName}</div>
          </div>
        </div>
        #if($useLimit == 2)
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">业务类型</label>
            <div class="layui-form-mid layui-word-aux">$!{businessTypeName}</div>
          </div>
        </div>
        #end
      </div>
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">活动开始时间</label>
            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($startDate,'yyyy-MM-dd')}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">活动结束时间</label>
            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($endDate,'yyyy-MM-dd')}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">活动状态</label>
            <div class="layui-form-mid layui-word-aux">$!{stateName}</div>
          </div>
        </div>
      </div>
      #if($note)
      <div class="layui-form-item">
        <label class="layui-form-label">活动描述</label>
        <div class="layui-form-mid layui-word-aux">$!{note}</div>
      </div>
      #end
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">最后修改</label>
            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($updateDate,'yyyy-MM-dd HH:mm:ss')}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">创建时间</label>
            <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($createDate,'yyyy-MM-dd HH:mm:ss')}</div>
          </div>
        </div>
      </div>
    </div><!-- /.layui-card-body -->
  </div><!-- /.layui-card -->
  <div class="layui-tab layui-tab-card" lay-filter="tab-info" style="display:${utils.eq($type,1,'blcok','none')};">
    <ul class="layui-tab-title">
      <li class="layui-this">活动限制网点</li>
    </ul>
    <div class="layui-tab-content" style="padding:0;">
      <div class="layui-tab-item layui-show">
        <div class="layui-card">
          <div class="layui-card-body">
            <div style="padding-bottom: 10px;">
              <button class="layui-btn layui-btn-sm LAY-btn-fun" data-type="add">新增网点</button>
            </div>
            <table id="LAY-table" lay-filter="LAY-table"></table>
          </div>
        </div>
      </div>
    </div>
  </div><!--/.layui-tab -->
</div>
#parse('/footFiles.html')
<script>
layui.config({
  base: '$!{webRoot}/layuiadmin/'
  ,webRoot:'$!{webRoot}'
  ,resDomain:'$!{resDomain}'
}).extend({
  index: 'lib/index'
  ,coupon_activity_info:'business/coupon_activity_info'
}).use(['index', 'form', 'coupon_activity_info'])
</script>
</body>
</html>